const state = {
  data: null,
};
const mutations = {
  data(state, data) {
    state.data = data;
  },
};

const actions = {
  updateDraggableData({ commit }, data) {
    commit('data', data);
  },
};

const getters = {
  data: (state) => {
    return state.data;
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters,
};
